<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <f:view>

      <head>
         <link href="styles.css" rel="stylesheet" type="text/css"/>
         <title>
            <h:outputText value="#{msgs.pageTitlemonta}"/>
         </title>
      </head>
      <body>
         <h:form>
             <table>
               <tr>
                  <td>
                     <h:outputText value="#{msgs.name}"/>
                  </td>
                  <td>
                      <h:inputText value="#{ctrMontadora.montadora.nome}" required="true"/>
                  </td>
               </tr>
                <tr>
                 <td>
                      <h:outputText value="#{msgs.montaHeader}"/>
                  </td>
                  <td>
                      <h:selectOneMenu id="origem" value="#{montadora.origem}" required="true">
                         <f:converter converterId="oriConverter" />
                         <f:selectItems value="#{ctrOrigem.origens}" var="origens" itemLabel="#{origem.descricao}" itemValue="#{origem.id}"/>
                    </h:selectOneMenu>
                  </td>
               </tr>
                 <tr>
                  <td>
                      <h:outputText value="#{msgs.contact}"/>
                  </td>
                  <td>
                      <h:inputText value="#{ctrMontadora.montadora.contato}" required="true"/>
                  </td>
               </tr>
                 <tr>
                  <td>
                      <h:outputText value="#{msgs.tax}"/>
                  </td>
                  <td>
                      <h:inputText value="#{ctrMontadora.montadora.imposto}" required="true"/>
                  </td>
               </tr>
                 
                 <tr>
                  <td>
                      <h:outputText value="#{msgs.date}"/>
                  </td>
                  <td>
                      <h:inputText value="#{ctrMontadora.montadora.dataCadastro}" required="true">
                          <f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT-3"/>
                      </h:inputText>
                  </td>
               </tr>

               </table>
             <h:commandButton value="Alterar" action="#{ctrMontadora.alterar}"/>
         </h:form>
      </body>
   </f:view>
</html>
